<?php
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'get';
if($_RQ['op']=='get'){
	$item=$this->plugin_setting('xieyi'.$_SESSION['onemerchid']);
	$return['item']=$item;
	$htmls=array(
		'type'=>'edit',
		'post'=>'post',
		'desc'=>'报名注意事项',
		'edit'=>array(
			array('type'=>'richtext','title'=>'报名注意事项','name'=>'content'),
			array('type'=>'richtext','title'=>'个人信息保护申明','name'=>'content2'),
		),
	);
	$return['htmls']=$htmls;
	exi($return);
}
if($_RQ['op']=='post'){
	$postdata=get_postdata();
	$item=$this->plugin_setting('xieyi'.$_SESSION['onemerchid'],$postdata);
	exi('设置成功');
}